package impl

import (
	"context"
	"fmt"

	authpb "kitexz/protocol/grpcx/kitex_gen/auth"
	"kitexz/protocol/thriftx/kitex_gen/api"
)

type HelloImplGrpc struct{}

func (h *HelloImplGrpc) Login(ctx context.Context, req *authpb.Request) (resp *authpb.Response, err error) {
	resp = &authpb.Response{
		Message: req.Message,
	}
	fmt.Println(resp)
	return
}

type HelloImplThrift struct{}

func (h *HelloImplThrift) Login(ctx context.Context, req *api.Request) (resp *api.Response, err error) {
	resp = &api.Response{
		Message: req.Message,
	}
	fmt.Println(resp)
	return
}
